package stanford.com.balldating.chat.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import stanford.com.balldating.base.dao.ISysUserDao;
import stanford.com.balldating.base.model.SysUser;
import stanford.com.balldating.chat.dao.IFriendsDao;
import stanford.com.balldating.chat.model.Friends;

@Service
@Transactional
public class FriendsService {
	@Autowired
	IFriendsDao dao;
	
	public List<Friends> loadFriend(String username){
		return dao.findByUsername(username);
	}
}
